-- GENERATED SPELL FOR [Darnassus Champion] --


function spell0_33738(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(63010,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33738', 0, 1)
end

function spell1_33738(pUnit, Event) --@Shield-Breaker,n/a--
pUnit:FullCastSpellOnTarget(65147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33738', 250, 1)
end

function Sorts_33738(pUnit, Event)
local choix_sorts_33738 = math.random(0, 1)
if choix_sorts_33738 == 0 then
pUnit:RegisterEvent('spell0_33738', 1, 1)
end
if choix_sorts_33738 == 1 then
pUnit:RegisterEvent('spell1_33738', 1, 1)
end
end

function mob33738_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33738', math.random(1500, 3000), 1)
end

function mob33738_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33738_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33738_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33738, 1, 'mob33738_Action')
RegisterUnitEvent(33738, 2, 'mob33738_Leave')
RegisterUnitEvent(33738, 3, 'mob33738_Kill')
RegisterUnitEvent(33738, 4, 'mob33738_Die')
